#!/bin/bash

script_file=/data/deployment/bin/del_ocpa_predict_log.sh
ips=(172.30.35.250 172.30.34.176)
for host in ${ips[@]}; do

	ssh -p 59522 root@${host} "mkdir -p /data/deployment/bin"

	scp -P 59522 /Users/twisty/Downloads/temporary/del_ocpa_predict_log.sh root@${host}:$script_file

	ssh -p 59522 root@${host} "chmod u+x $script_file"

	ssh -p 59522 root@${host} "echo \"0 1 * * * $script_file > /dev/null 2>&1 &\" >> /var/spool/cron/root"
done